package principal;

import business.Foto;
import business.Panorama;
import frames.FrameLatLng;
import java.io.IOException;

public class Main {

    /*
     * PROCESSO
     * Pegar as coordenadas
     * Realizar processo principal
     */
    public static void main(String args[]) throws InterruptedException, IOException {

        Foto foto = new Foto();
        
        Panorama.salvarPano(foto.getFotoRetirada(), Foto.NOME_FOTO + ".png");
        
        String latitude = foto.getLatitude();
        String longitude = foto.getLongitude();
        
        if (latitude != null &&  longitude != null) {
            Principal principal = new Principal();
            principal.doProcess(latitude, longitude);
        } else {
            new FrameLatLng().setVisible(true);
        }

        System.out.println("");

    }
}
